import { lazy } from "react";

// 二级
export const homerouter: any[] = [
  {
    path: "/home/index",
    element: lazy(() => import("../page/index/index")),
    title: "首页",
  },
];
// 一级
const RouterList: any = {
  mode: "history",
  router: [
    {
      path: "/",
      to: "/home/index",
    },
    {
      path: "/home",
      element: lazy(() => import("../page/home/index")),
      children: homerouter,
    },
    {
      path: "/3D",
      element: lazy(() => import("../page/3D/index")),
    },{
      path: "/AI",
      element: lazy(() => import("../page/AI/index")),
    },
     {
      path: "/my",
      element: lazy(() => import("../page/my/index")),
    },
    {
      path: "/login",
      element: lazy(() => import("../page/login/index")),
    },
    {
      path: "/detail",
      element: lazy(() => import("../page/detail/index")),
    },
    {
      path: "*",
      element: lazy(() => import("../page/error/index")),
    },
  ],
};
export default RouterList;
